<%-- 
    Document   : index
    Created on : Oct 30, 2013, 3:29:06 PM
    Author     : nguyen
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Home Page</title>
        <link href="css/index.css" rel="stylesheet" type="text/css"/>

        <script src="js/dropdown.js"></script>
        <script src="js/login.js"></script>
        <link rel="stylesheet" href="css/login.css" />


    </head>
    <body>
        <div class="bound-header">
            <div class="header">
                <div class="header-left">
                    <a href="index.jsp" title="Home"/><img src="css/img/LOGO.png" width="200" height="70" alt="Home"/></a>
                </div>
                <div class="header-right">
                    <!-- Login Starts Here -->
                    <div id="loginContainer">
                        <c:if test="${user==null}">
                            <a class="Login" href="#"><span>Login</span></a>
                        </c:if>
                        <c:if test="${user!=null}">
                            <a class="Logout" href="Logout"><span>Logout</span></a>
                            <a href="ShowAlbum">Your Album</a>
                        </c:if>
                        <div style="clear:both"></div>
                        <div id="loginBox">                
                            <form id="loginForm" action="Login" method="POST">
                                <fieldset id="body">
                                    <fieldset>
                                        <label for="email">Email Address</label>
                                        <input type="text" name="txtUsername" id="email" />
                                    </fieldset>
                                    <fieldset>
                                        <label for="password">Password</label>
                                        <input type="password" name="txtPassword" id="password" />
                                    </fieldset>
                                    <input type="submit" id="login" value="Sign in" />
                                    <label for="checkbox"><input type="checkbox" id="checkbox" />Remember me</label>
                                </fieldset>
                                <span><a href="registration.jsp">Registration!</a></span>
                            </form>
                        </div>
                    </div>
                    <!-- Login Ends Here -->
                    <a class="Regis" href="registration.jsp">Registration</a>
                    <c:if test="${user!=null}">
                        <a class="menu" href="CreateAlbum.jsp"><span>Create Album</span></a>
                        <a class="menu" href="UploadImage.jsp"><span>Upload Image</span></a>
                    </c:if>
                </div>
            </div>
        </div>
        <div class="bound-content">
            <div class="content">
                <div class="content-left">
                    ${msg}<br>
                    ${msg1}<br>

                </div>
                <div class="content-right">cde</div>
            </div>
        </div>
        <div class="bound-footer">
            <div class="footer">
                Copyright 2013 © PhotoBox <br>
                Address: abc Street, cde City <br>
                Designer: Thoinvgc00312
            </div>
        </div>
    </body>
</html>








